if (! MINI_WINDOW_P (w)
|| (w == XWINDOW (minibuf_window) && ! echo_area_glyphs))
{
+ whole = ZV - BEGV;
start = startp - BEGV;
/* I don't think this is guaranteed to be right. For the
moment, we'll pretend it is. */
- end = Z - XINT (w->window_end_pos) - BEGV;
- whole = ZV - BEGV;
+ end = (Z - XINT (w->window_end_pos)) - BEGV;
if (end < start) end = start;
- if (whole > (end - start)) whole = end - start;
+ if (whole < (end - start)) whole = end - start;
}
else
start = end = whole = 0;